package top.healthylife.gateway.platform.baihang.api.api.bankcardcheck;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0101.req.BHReqBCFourElementsDto;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0101.res.BHResBCFourElementsDto;

/**
 * 银行卡四要素核验
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "银行卡四要素核验" , info = "银行卡四要素核验")
public class BHBCFourElementsApi implements ParentFace<BHReqBCFourElementsDto, BHResBCFourElementsDto> {

    private static final String PRODUCT_CODE = "BBAS0101";

    @Override
    public BHResBCFourElementsDto execute(BHReqBCFourElementsDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResBCFourElementsDto.class);
    }
}
